import App from './App'
import Model from './model/model.js'
import {Api_url} from './common/config.js'

// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)



 import mpShare from '@/common/share.js'
Vue.mixin(mpShare) 

 //let mpShare = require('./common/share.js');
 //Vue.mixin(mpShare)



Vue.config.productionTip = false
Vue.prototype.$model=Model
Vue.prototype.$get_img="https://dckjhouse.oss-cn-hangzhou.aliyuncs.com/"
//Vue.prototype.$get_img=Api_url
Vue.prototype.nav=function(url){
	uni.navigateTo({
		url:url
	})
}

Vue.prototype.clickImg=function(url) {
				uni.previewImage({
					urls: [this.$get_img+url], //需要预览的图片http链接列表，多张的时候，url直接写在后面就行了
					current: '', // 当前显示图片的http链接，默认是第一个
					success: function(res) {},
					fail: function(res) {},
					complete: function(res) {},
				})
			},

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif


// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif